package com.kudian.restful.entity;

import java.sql.Timestamp;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import static javax.persistence.GenerationType.IDENTITY;
import javax.persistence.Id;
import javax.persistence.Table;

/**
 * Sms entity. @author MyEclipse Persistence Tools
 */
@Entity
@Table(name = "sms")
public class Sms implements java.io.Serializable {

	// Fields

	private Integer smsId;
	private String mobile;
	private String verificationCd;
	private Timestamp addDate;

	// Constructors

	/** default constructor */
	public Sms() {
	}

	/** full constructor */
	public Sms(String mobile, String verificationCd, Timestamp addDate) {
		this.mobile = mobile;
		this.verificationCd = verificationCd;
		this.addDate = addDate;
	}

	// Property accessors
	@Id
	@GeneratedValue(strategy = IDENTITY)
	@Column(name = "sms_id", unique = true, nullable = false)
	public Integer getSmsId() {
		return this.smsId;
	}

	public void setSmsId(Integer smsId) {
		this.smsId = smsId;
	}

	@Column(name = "mobile", nullable = false, length = 20)
	public String getMobile() {
		return this.mobile;
	}

	public void setMobile(String mobile) {
		this.mobile = mobile;
	}

	@Column(name = "verification_cd", nullable = false, length = 10)
	public String getVerificationCd() {
		return this.verificationCd;
	}

	public void setVerificationCd(String verificationCd) {
		this.verificationCd = verificationCd;
	}

	@Column(name = "add_date", nullable = false, length = 19)
	public Timestamp getAddDate() {
		return this.addDate;
	}

	public void setAddDate(Timestamp addDate) {
		this.addDate = addDate;
	}

}